
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>FreeMarker Index</title>

    <link href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/css/style.css"/>
  </head>

  <body>


    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>

 		<div class="navbar-brand" Left="400px">买家您好，${sys_user_key.account}</div>
	          <a class="navbar-brand" href="/system/logout">[退出]</a>
        </div>
       <div id="navbar" class="navbar-collapse collapse">
          	<form class="navbar-form navbar-right">
			<a class="navbar-brand" href="/buyer/index/all">首页</a>
			
            <a class="navbar-brand" href="/buyer/account">账务</a>
            
           	<a class="navbar-brand" href="/buyer/shoppingcart">购物车</a>
 			</form>
       </div><!--/.navbar-collapse -->
          
        
      </div>
    </nav>
  <div class="g-doc">
    <div class="m-tab m-tab-fw m-tab-simple f-cb" >
        <h2>已购买的内容</h2>
    </div>

 <div style="position:relative;line-height:35px;margin:30px 30px 0 0;" >
        <h2>  </h2>
    </div>
   <table class="m-table m-table-row n-table g-b3">
        <colgroup><col class="img"/><col/><col class="time"/><col/><col class="num"/><col/><col class="price"/><col/></colgroup>
        <thead>
            <tr><th>内容图片</th><th>内容名称</th><th>购买时间</th><th>购买数量</th><th>购买价格</th></tr>
        </thead>
        <#assign var=0>
		<tbody>
		<#list history as commodity>
			<tr>
                <td><a href="/buyer/detail?id=${commodity.commodityId}"><img src="${commodity.picture}" alt="${commodity.title}"></a></td>
                <td><h4><a href="/buyer/detail?id=${commodity.commodityId}">${commodity.title}</a></h4></td>
                <td><span class="v-time">${commodity.createTime?datetime}</span></td>
                <td><span class="v-num">${commodity.amount}</span></td>
                <td><span class="v-unit">¥</span><span class="value">${commodity.price}</span></td>
            </tr>
			<#assign var= var+commodity.amount*commodity.price>
		</#list> 
		</tbody>
		<tfoot>
            <tr>
                <td colspan="4"><div class="total">总计：</div></td>
                <td><span class="v-unit">¥</span><span class="value">${var}</span></td>
            </tr>
        </tfoot>
    </table>
</div>


<div class="n-foot">
 <#include "/footer.ftl">
</div>
    <!-- Bootstrap core JavaScript -->
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
  </body>
</html>